//package com.sunrate.investingquote.service.router.comparator.test.compare.v1;
//
///**
// * @author yyh
// * @description:
// * @date 2023/07/07/ 17:52
// */
//public class A {
//    public static void main(String[] args) {
//        String source = "public class Foo{public static void main(String[] args){System.out.println(\"Hello World!\");}}";
////解析语法树
//        ASTParser parser = ASTParser.newParser(AST.JLS14);
//        parser.setKind(ASTParser.K_COMPILATION_UNIT);
//        parser.setSource(source.toCharArray());
//        CompilationUnit cu = (CompilationUnit) parser.createAST(null);
////将语法树转化为JSON格式的字符串
//        JSONObject cuJson = new JSONObject(cu);
//        String jsonStr = cuJson.toString();
////对结果进行输出
//        System.out.println(jsonStr);
//    }
//}
